reftests: Add background-area reftest
authorBenjamin Otte <otte@redhat.com>
Sat, 11 Jun 2011 00:12:35 +0000 (02:12 +0200)
committerBenjamin Otte <otte@redhat.com>
Sat, 11 Jun 2011 07:29:32 +0000 (09:29 +0200)
Checks the fix from last commit: background area is supposed to be the
border box.

tests/reftests/Makefile.am
tests/reftests/background-area.css [new file with mode: 0644]
tests/reftests/background-area.ref.ui [new file with mode: 0644]
tests/reftests/background-area.ui [new file with mode: 0644]

index 5eebd6e8b36530f1517fe6a63e41da0506c7d8e1..2dccc4f5bb528d9a39e35eb51a83e976e630c801 100644 (file)
@@ -26,6 +26,9 @@ clean-local:
 
 EXTRA_DIST += \
        align-expand.sh \
+       background-area.css \
+       background-area.ref.ui \
+       background-area.ui \
        border-image-ball-green.png \
        border-image-ball-red.png \
        border-image-ball-yellow.png \
diff --git a/tests/reftests/background-area.css b/tests/reftests/background-area.css
new file mode 100644 (file)
index 0000000..d5a7f37
--- /dev/null
@@ -0,0 +1,19 @@
+* {
+  engine: none;
+  border-radius: 0;
+  border-style: none;
+  border-image: none;
+  background-image: none;
+}
+
+GtkButton {
+  background-color: green;
+  border-style: solid;
+  border-color: rgba(255,0,0,0.6);
+  border-width: 4;
+}
+
+#reference {
+  border-color: rgb(153,102,0);
+}
+
diff --git a/tests/reftests/background-area.ref.ui b/tests/reftests/background-area.ref.ui
new file mode 100644 (file)
index 0000000..1643a51
--- /dev/null
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <!-- interface-requires gtk+ 3.0 -->
+  <object class="GtkWindow" id="window1">
+    <property name="can_focus">False</property>
+    <property name="type">popup</property>
+    <child>
+      <object class="GtkButton" id="button1">
+        <property name="name">reference</property>
+        <property name="label" translatable="yes">Make sure that the background
+area contains the border.</property>
+        <property name="visible">True</property>
+        <property name="can_focus">True</property>
+        <property name="receives_default">True</property>
+        <property name="use_action_appearance">False</property>
+      </object>
+    </child>
+  </object>
+</interface>
diff --git a/tests/reftests/background-area.ui b/tests/reftests/background-area.ui
new file mode 100644 (file)
index 0000000..a186170
--- /dev/null
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <!-- interface-requires gtk+ 3.0 -->
+  <object class="GtkWindow" id="window1">
+    <property name="can_focus">False</property>
+    <property name="type">popup</property>
+    <child>
+      <object class="GtkButton" id="button1">
+        <property name="label" translatable="yes">Make sure that the background
+area contains the border.</property>
+        <property name="visible">True</property>
+        <property name="can_focus">True</property>
+        <property name="receives_default">True</property>
+        <property name="use_action_appearance">False</property>
+      </object>
+    </child>
+  </object>
+</interface>